window: Remove an unused function.
authorBenjamin Otte <otte@redhat.com>
Tue, 9 Apr 2013 09:20:49 +0000 (11:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 9 Apr 2013 10:09:12 +0000 (12:09 +0200)
Luckily, we don't need to support an implementation of a minimal WM for
linux-fb anymore (which is what this function was added for).

gtk/gtkwindow.c
gtk/gtkwindowprivate.h

index 6c4d43f8788b309357bb715dd4404d8cb9a9f14c..a25ce752d6760a52df629a2eb723153b00a30d07 100644 (file)
@@ -5602,6 +5602,7 @@ gtk_window_guess_default_size (GtkWindow *window,
   info = gtk_window_get_geometry_info (window, FALSE);
   if (info)
     {
+      g_print ("last geometry info was %d %d\n", info->last.configure_request.width, info->last.configure_request.height);
       /* MAX() works even if the last request is unset with -1 */
       *width = MAX (*width, info->last.configure_request.width);
       *height = MAX (*height, info->last.configure_request.height);
@@ -8783,36 +8784,6 @@ gtk_window_compare_hints (GdkGeometry *geometry_a,
   return TRUE;
 }
 
-void
-_gtk_window_constrain_size (GtkWindow   *window,
-                           gint         width,
-                           gint         height,
-                           gint        *new_width,
-                           gint        *new_height)
-{
-  GtkWindowPrivate *priv;
-  GtkWindowGeometryInfo *info;
-
-  g_return_if_fail (GTK_IS_WINDOW (window));
-
-  priv = window->priv;
-
-  info = priv->geometry_info;
-  if (info)
-    {
-      GdkWindowHints flags = info->last.flags;
-      GdkGeometry *geometry = &info->last.geometry;
-      
-      gtk_window_constrain_size (window,
-                                geometry,
-                                flags,
-                                width,
-                                height,
-                                new_width,
-                                new_height);
-    }
-}
-
 static void 
 gtk_window_constrain_size (GtkWindow   *window,
                           GdkGeometry *geometry,
index 398a220fd55370242b68b6a4bb485c9ebe78f572..a1b042733358fd9db455366afdf54301033b8521 100644 (file)
@@ -30,11 +30,6 @@ void            _gtk_window_internal_set_focus (GtkWindow *window,
 void            _gtk_window_reposition         (GtkWindow *window,
                                                 gint       x,
                                                 gint       y);
-void            _gtk_window_constrain_size     (GtkWindow *window,
-                                                gint       width,
-                                                gint       height,
-                                                gint      *new_width,
-                                                gint      *new_height);
 void            _gtk_window_group_add_grab    (GtkWindowGroup *window_group,
                                                GtkWidget      *widget);
 void            _gtk_window_group_remove_grab (GtkWindowGroup *window_group,